﻿using System;
using System.Collections.Generic;

namespace _011_列表的遍历
{
    class Program
    {
        static void Main(string[] args)
        {
            List<int> scoreList = new List<int>();
            scoreList.Add(100);
            scoreList.Add(90);
            scoreList.Add(80);
            scoreList.Add(70);
            scoreList.Add(60);

            //列表的遍历
            foreach (var item in scoreList)
            {
                Console.WriteLine(item);

            }

            for (int i = 0; i < scoreList.Count; i++)
            {
                Console.WriteLine(scoreList[i]);
            }

        }
    }
}
